<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description"
	content="<?php echo empty($this->pageDescription)?$this->pageTitle:$this->pageDescription;?>">
<meta name='keywords'
	content='<?php echo empty($this->pageKeywords)?$this->pageTitle:$this->pageKeywords;?>'>

<!-- Config -->
<?php 
$cs = Yii::app()->clientScript;
$cs->scriptMap = array( 'jquery.js' => Yii::app()->request->baseUrl.'/external/jquery.js',);
?>

<!-- Bootstrap CSS framework -->
<?php Utils::loadCss("/external/bootstrap/css/bootstrap.css")?>
<?php Utils::loadCss("/css/main.css")?>

<!-- Load JS lib -->
<?php Yii::app()->clientScript->registerCoreScript( 'jquery' );?>

<!-- <script type="text/javascript" src="/js/jquery.js"></script>  -->
<!--  this is not a proper way to load jquery. It is confictly with other components. -->

<!-- <script type="text/javascript" src="/js/bootstrap-dropdown.js"></script> -->
<?php Utils::loadJs("/external/bootstrap/js/bootstrap-dropdown.js")?>
<?php Utils::loadJs("/external/bootstrap/js/bootstrap-tab.js")?>

<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
<?php echo $content; ?>
	<footer id="footer">
		<div class="container">
			Powered by SGEvent.com<br /> All Rights Reserved.<br />
		</div>
	</footer>
	<!-- footer -->
<script>
	$('.dropdown-toggle').dropdown();
	$('#tabs').tab();
</script>
</body>

</html>
